package day0327;

import java.sql.SQLOutput;

/**
 * @Author Weton Li
 * @Date 2021/3/27 21:51
 */
public class Outer {
    final int j = 666;

    public void out_Method(){
        System.out.println(j);
        System.out.println("out_method()");

        class Inner{ // 局部内部类
            public void in_method(){
                int i = 6;
                System.out.println("局部内部类方法in_method "+i+j);
            }
        }
//        Inner inner = new Inner();
//        inner.in_method();
        new Inner().in_method();
    }

    public static void main(String[] args) {
        Outer outer = new Outer();
        outer.out_Method(); // 此处调用out_method方法同时调用了in_method()
    }
}
